package IC.AST.nodes;

import IC.AST.*;

/**
 * a length expression
 */
public class LengthExpr extends Expression {
	private Expression array;	// the array specifier

	/**
	 * @param array the array specifier
	 * @param fileName TODO
	 * @param line the node line number
	 * @param column the node column number
	 */
	public LengthExpr(Expression array, String fileName, int line, int column) {
		super(fileName, line,column);
		this.array = array;
	}

	/**
	 * @return the array specifier
	 */
	public Expression getArray() {
		return this.array;
	}

	public <D,U> U accept(PropogatingVisitor<D,U> v, D context) throws Exception {
		return v.visit(this,context);
	}
}
